package org.accp.dao;

import org.accp.pojo.Hisrole;
import org.accp.pojo.Hisuser;
import org.accp.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HisuserDao extends CommonDao<Hisuser, Integer> {
    public List<Hisuser> getByUserId(int cid);
    /**
     * 根据权限下标登录后台
     * @param username
     * @return
     */
    public Hisuser getByUserName(String username);

    /**
     * 根据用户编号查询权限信息
     * @param userid
     * @return
     */
    public List<Permission> getPersByUserId(int userid);

    public void addUserRole(@Param("userid") int userid, @Param("roleids") int[] roleids);



}
